export default class Button {
  constructor () {
    this.plugin = {
      name: 'waves-plugin',
      dsc: 'waves-plugin',
      priority: 101,
      rule: [
        {
          reg: "^(鸣潮)帮助$", //避免与方舟插件冲突，移除~前缀
          fnc: 'help'
        },
        {
          reg: "^(鸣潮)(常驻(武器|角色)|限定(武器|角色))?抽卡(统计|分析|记录)([\\s\\S]*)$",
          fnc: 'gachaCount'
        },
        {
          reg: "^(鸣潮)(波片|体力|日常数据)$",
          fnc: 'querySanity'
        },
        {
          reg: "^(鸣潮)(随机)?(表情包)$",
          fnc: 'emoji'
        },
        {
          reg: "^(鸣潮)?(数据坞|声骸)(\\d{9})?$",
          fnc: "calabash"
        }
      ]
    }
  }
  help (){
    const button = [
      { label: '探索度', callback: `鸣潮探索度` },
      { label: '数据坞', callback: `鸣潮数据坞` },
      { label: '卡片', callback: `鸣潮卡片` },

      { label: '库洛签到', callback: `鸣潮签到` },
      { label: '查看体力', callback: `鸣潮体力` },
      { label: '绑定账户', callback: `鸣潮登录` },

      { label: '全息战略', callback: `鸣潮全息战略` },
      { label: '抽卡模拟', data: `鸣潮十连` },
      { label: '登录帮助', callback: `鸣潮登录帮助` },
    ]
    return Bot.Button(button)
  }
  gachaCount (){
    const button = [
      { label: '抽卡帮助', callback: `鸣潮抽卡帮助` },
      { label: '鸣潮帮助', callback: `鸣潮帮助` },
      { label: '账号卡片', callback: `鸣潮卡片` },
    ]
    return Bot.Button(button)
  }
  querySanity (){
    const button = [
      { label: '绑定账号', callback: `鸣潮登录` },
      { label: '鸣潮帮助', callback: `鸣潮帮助` }
    ]
    return Bot.Button(button)
  }
 emoji (){
    const button = [
      { label: '再来一张', callback: `鸣潮随机表情包` },
      { label: '鸣潮帮助', callback: `鸣潮帮助` }
    ]
    return Bot.Button(button)
  }
 calabash (){
    const button = [
      { label: '鸣潮登录', callback: `鸣潮登录` },
      { label: '角色卡片', callback: `鸣潮卡片` },
      { label: '鸣潮帮助', callback: `鸣潮帮助` }
    ]
    return Bot.Button(button)
  }
}